package com.alphas.project.model.enums;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

public enum HttpMethodEnum {
    GET("GET"), POST("POST"), PUT("PUT"), DELETE("DELETE");
    private final String method;
    HttpMethodEnum(String method) {
        this.method = method;
    }
    public static List<String> getMethods() {
        return Arrays.stream(values()).map(item -> item.method).collect(Collectors.toList());
    }
    public String getMethod() {
        return method;
    }

}
